<div class="temas view">
<h2><?php  __('Tema');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
	 		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		    <dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $tema['Tema']['nombre']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Proyecto'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $tema['Proyecto']['nombre']; ?>
			&nbsp;
		</dd>	
	</dl>
</div>
<div class="actions">
	<?php echo $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
</div>
<div class="related">
	<h3><?php __('Related Sesiones');?></h3>
	<?php if (!empty($tema['Sesione'])):?>
	
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Tema Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($tema['Sesione'] as $sesione):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $sesione['id'];?></td>
			<td><?php echo $sesione['nombre'];?></td>
			<td><?php echo $sesione['tema_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Ver', true), array('controller' => 'sesiones', 'action' => 'view', $sesione['id'])); ?>
				<?php echo $this->Html->link(__('Editar', true), array('controller' => 'sesiones', 'action' => 'edit', $sesione['id'])); ?>
				<?php echo $this->Html->link(__('Eliminar', true), array('controller' => 'sesiones', 'action' => 'delete', $sesione['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sesione['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Sesione', true), array('controller' => 'sesiones', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
